package com.hksj.slm.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author fjt
 * @data 2024/8/22 11:08
 * @describe 统计指定房间中的照明时长
 */
@Data
public class DurationStatisticByRoomIdDTO implements Serializable {

    private static final long serialVersionUID = -3215565259529331785L;


    @ApiModelProperty("查询起始时间 yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "查询起始时间不能为空")
    private Date startTime;

    @ApiModelProperty("查询截止时间 yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "查询截止时间不能为空")
    private Date endTime;

    @ApiModelProperty("房间id")
    @NotNull(message = "房间id不能为空")
    private Long roomId;


}
